<?php
use yii\helpers\Url;
?>
<div class="row dialog">
    <div class="col-md-12">
        <div class="card">
            <div class="card-content">
                <form class="pageForm" method="post" action="<?= Url::to(['/net/create/'])?>" data-validator-option="{theme: 'yellow_top',timely:2, focusCleanup:true}">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">图片描述</label>
                                <input type="text" name="pic_name" class="form-control" value="<?= $pic['pic_name']?>">
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group uplbox">
                                <input type="file" multiple class="file" data-overwrite-initial="false">
                            </div>
                            <input type="hidden" class="uplhidden" name="picImage" value="<?= urldecode($pic['pic_url'])?>" />
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">时间</label>
                                <input type="text" name="insert_time" class="form-control datepicker" value="<?= $pic['insert_time']?>">
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">排序</label>
                                <input type="text" name="sort" class="form-control" value="<?= $pic['sort']?>">
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label>
                                    <input type="checkbox" name="status" value="<?= ($pic['status']) ? 1 : 0?>" checked="checked">是否显示
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <input type="hidden" name="id" value="<?= $pic['id']?>" />
                                <button type="submit" class="btn btn-fill btn-primary pull-right">确认提交</button>
                            </div>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </form>
            </div>
        </div>
    </div>
</div>
